package com.claims

import com.claims.code.State

class Clinic {

  Long id
  String name
  String address
  String address2
  String city
  String postcode
  State state
  boolean banned
  boolean panel

  static hasMany = [claims: Claim]

  static constraints = {
    name()
    address()
    address2()
    city()
    postcode()
    state()
  }

  static mapping = {
      version false
    sort name:'asc'
  }

  public String toString() {
    return "${name}"
  }

}
